<?php
/**
 * 招聘信息读取老库控制器
 * hrcontroller.php
 * Create on 2015-4-13 15:04:08
 * Create by Zhou.zhe
 */
namespace haibao\cms\business\control\pc\common;
use haibao\cms\data\Hr as Hr;

class HrController extends \haibao\cms\business\control\Base{
	
	public function __construct($updateTime = null,$controlId,$isPublish){
		parent::__construct($updateTime,$controlId,$isPublish);
	}
	
	/**
	 * 获取模版内容
	 */
	public function displayTemplateHtml(){
		$controlData = $this->getParameter(self::$CONTROL_DATA);
		$content = $this->getParameter(self::$CONTROL_CONTENT);
		$path = $this->generateHtmlPath(__CLASS__);
		
		$hr = new Hr();
		$allJobs = $hr->getAllJOb();
		$this->assign('allJobs',$allJobs);
		$this->generateHtml($path,$content);
		return $this->getHtml($path);
	}
}